import { Component } from '@angular/core';
import { FileUploader } from 'ng2-file-upload';

// const URL = '/api/';
const URL = 'http://192.168.1.129:8080/file/';
@Component({
    templateUrl: 'file.component.html'
})
export class FileComponent {

      public uploader:FileUploader = new FileUploader({url: URL});
      public hasBaseDropZoneOver:boolean = false;
      public hasAnotherDropZoneOver:boolean = false;

      public fileOverBase(e:any):void {
          this.hasBaseDropZoneOver = e;
      }

      public fileOverAnother(e:any):void {
          this.hasAnotherDropZoneOver = e;
      }

}
